Personal tools

Lua/Client/ClientSound/Static Functions/Play

From JC2-MP Documentation

< Lua‎ | Client‎ | ClientSound
Jump to: navigation, search

Returns    none
Prototype    ClientSound.Play(AssetLocation, table)
Description    Creates a ClientSound using the same arguments as Create.


Notes

  • There is an extra argument, timeout, which removes the sound after the specified seconds.
  • If timeout is not specified, it defaults to 5 seconds.